//
//  NetworkTools.swift
//  WeiBo(Swift)
//
//  Created by 周成龙 on 16/9/28.
//  Copyright © 2016年 ZCL. All rights reserved.
//

import UIKit

import AFNetworking

class NetworkTools: AFHTTPSessionManager {

    static let shareInstence: NetworkTools = {
        ZLog(message: "")
        let baseUrl = URL(string: "https://api.weibo.com/")!
        let instence = NetworkTools(baseURL: baseUrl, sessionConfiguration: URLSessionConfiguration.default)
        instence.responseSerializer.acceptableContentTypes = NSSet(objects: "application/json", "text/json", "text/javascript", "text/plain") as? Set
        return instence
    }()
    
    
    
}
